package cn.yto.print.model.request;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class WphPrintRequest {

    private String cmd;
    private String requestID;
    private Task task;

    @Data
    public static class Task {
        private String traceId;
        private String actionType;
        private String storeId;
        private String channel;
        private String printerName;
        private PrintParamDTO printParamDTO;
    }

    @Data
    public static class PrintParamDTO {
        private String platformTemplateURL;
        private String customerTemplate;
        private String templateUrl;
        private List<PrintData> printDatas;
        private Map<String, Object> senderData;
    }

    @Data
    public static class PrintData {
        private String printId;
        private String printData;
        private Map<String, Object> customData;
    }

}
